<table width="100%" align="center" cellpadding="0" cellspacing="0" id="judul">
  <tr align="center">
    <td width="100%" colspan="15"><h3>Rekapitulasi Data Peil Banjir</h3></td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="100%" border="2" cellpadding="0" cellspacing="0">
<tr align="center">
    <td width="auto" rowspan="2">No</td>
    <td width="auto" rowspan="2">Tahun</td>
    <td width="auto" rowspan="2">Nama Pemohon</td>
    <td width="auto" rowspan="2">Alamat Pemohon</td>
    <td width="auto" rowspan="2">Tanggal Permohonan</td>
    <td width="auto" rowspan="2">Tanggal Perijinan</td>
    <td width="auto" rowspan="2">Nomor Ijin Surat</td>
    <td colspan="3">Lokasi</td>
    <td width="auto" rowspan="2">Tinggi Air Maksimal (m)</td>
    <td width="auto" rowspan="2">Titik Tetap</td>
  </tr>
  <tr align="center">
    <td width="auto">Lokasi</td>
    <td width="auto">Kecamatan</td>
    <td width="auto">Kelurahan / Desa</td>
  </tr>
  <? $no = 1;
 	foreach($dpb ->result() as $row){
 	?>
  <tr align="center">
    <td width="auto"><?= $no; ?></td>
    <td width="auto"><?= $row->TAHUN; ?></td>
    <td width="auto"><?= $row->NAMA_PEMOHON; ?></td>
    <td width="auto"><?= $row->ALAMAT_PEMOHON; ?></td>
    <td width="auto"><?= $row->TGL_PERMOHONAN; ?></td>
    <td width="auto"><?= $row->TGL_IJIN; ?></td>
    <td width="auto"><?= $row->NO_IJIN; ?></td>
    <td width="auto"><?= $row->LOKASI; ?></td>
    <td width="auto"><?= $row->KECAMATAN; ?></td>
    <td width="auto"><?= $row->KELURAHAN; ?></td>
    <td width="auto"><?= $row->TINGGI_AIR; ?></td>
    <td width="auto"><?= $row->TITIK_TETAP; ?></td>
  </tr>
  <? $no++;}?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  </table>
